﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Brjostagjof.Models.VideoViewModel>" ValidateRequest="false"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Brjóstagjöf - Skrá YouTube Myndband
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1>Setja inn myndband af YouTube</h1>
    
   <% using (Html.BeginForm()) { %>
            <%: Html.ValidationSummary(true) %>
        <div>
            <label for="video_YTUrl">Vinsamlegast setjið vefslóð af YouTube myndbandi hér:</label>
        </div>
        <div>
            <%: Html.TextBoxFor(model=>model.youtube.YTUrl) %><br />
            <%: Html.ValidationMessageFor(model => model.youtube.YTUrl) %>
        </div>

        <div>
            <div>
                <label for="video_YTTitle">Titill:</label>
            </div>
            <%: Html.TextBoxFor(model => model.youtube.YTTitle)%>
            <%: Html.ValidationMessageFor(model => model.youtube.YTTitle)%>
        </div>
        <div>
            <div>
                <label for="video_YTMessage">Lýsing á myndbandi:</label>
            </div>
            <%: Html.TextAreaFor(model => model.youtube.YTMessage, new { cols = 50, rows = 10 })%>
            <%: Html.ValidationMessageFor(model => model.youtube.YTMessage)%>
        </div>
        <p>
            <input type="submit" value="Vista YouTube myndband" />
        </p>
    <% }%>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Actions" runat="server">
   <%Html.RenderPartial("PartialViews/Actions", "Video"); %>
</asp:Content>
